return this.count > 1;
},
- get isClearable() {
- return !this.isChat && !this.resident;
- },
-
countUpdated: function() {
this.emit('count-updated');
},
this._notificationTimeoutId = 0;
this._notificationRemoved = false;
- this.clearableCount = 0;
-
Main.layoutManager.addChrome(this.actor, { affectsInputRegion: false });
Main.layoutManager.trackChrome(this._bannerBin, { affectsInputRegion: true });
destroyId: 0,
};
- if (source.isClearable)
- this.clearableCount++;
-
this._sources.set(source, obj);
obj.notifyId = source.connect('notify', Lang.bind(this, this._onNotify));
let obj = this._sources.get(source);
this._sources.delete(source);
- if (source.isClearable)
- this.clearableCount--;
-
source.disconnect(obj.notifyId);
source.disconnect(obj.destroyId);